package com.es.springbootesdemo.domain;

import org.springframework.data.elasticsearch.annotations.Document;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

/**
 * @author: yushizhong
 * @date: 2022-01-19 13:54
 * @version: 1.0
 **/
@Data
@Builder
@Document(indexName = "user", type = "ysz")
public class User {
    private String name;

    private String country;

    private String sex;

    private Integer age;

    private String date;

    @Tolerate
    public User() {}
}
